<?php
 

include("geoip.inc");
 
$gi = geoip_open(dirname(__FILE__) . "/GeoIP.dat",GEOIP_STANDARD);
 
$your_ip = $_SERVER['REMOTE_ADDR'];
 
echo "Your IP Address: " . $your_ip . "<br>You come from <b>" . geoip_country_code_by_addr($gi, $your_ip) . "</b> - <b>" . geoip_country_name_by_addr($gi, $your_ip) . "</b><br>";
 
geoip_close($gi);


	
?>
